package com.igoal.web.model;

import java.util.ArrayList;
import java.util.List;

import com.igoal.dto.PotentialFriendDTO;
import com.igoal.web.Constants;

public class SearchResultModel extends BaseModel {
	private int searchType;
	private int countResult;
	private String keyword;
	private boolean hasNextPage;
	private int page;
	private int nextPage;
	private int prevPage;
	
	private List<PotentialFriendDTO> resultOfFriendSearch;

	public List<PotentialFriendDTO> getResultOfFriendSearch() {
		return resultOfFriendSearch;
	}

	public void setResultOfFriendSearch(
			List<PotentialFriendDTO> resultOfFriendSearch) {
		this.resultOfFriendSearch = resultOfFriendSearch;
	}

	public SearchResultModel() {
		resultOfFriendSearch = new ArrayList<PotentialFriendDTO>(0);
		searchType = Constants.SEARCH_FRIEND;
		countResult = 0;
		hasNextPage = false;
	}
	
	public int getSearchType() {
		return searchType;
	}

	public void setSearchType(int searchType) {
		this.searchType = searchType;
	}

	public int getCountResult() {
		return countResult;
	}

	public void setCountResult(int countResult) {
		this.countResult = countResult;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public boolean getHasNextPage() {
		return hasNextPage;
	}

	public void setHasNextPage(boolean hasNextPage) {
		this.hasNextPage = hasNextPage;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public int getPrevPage() {
		return prevPage;
	}

	public void setPrevPage(int prevPage) {
		this.prevPage = prevPage;
	}
}
